import javax.swing.*;
import java.awt.*;


public class JFrameDemo1 {

    public static void main(String[] args) {
        JFrame jf = new JFrame();
        jf.setSize(1000, 1000);
        jf.setTitle("真不错");
        jf.setAlwaysOnTop(true);
        jf.setLocationRelativeTo(null);
        jf.setDefaultCloseOperation(3);
        jf.setLayout(null);

        JButton btn1 = new JButton("确认");
        btn1.setBounds(80,300,100,20);
        jf.add(btn1);

        JButton btn2 = new JButton("取消");
        btn2.setBounds(200,300,100,20);
        jf.add(btn2);

        JLabel text = new JLabel("我爱学习");
        text.setBounds(0,0,150,40);
        jf.add(text);

        JLabel img = new JLabel(new ImageIcon("C:\\Users\\20555\\Desktop\\intellij idea\\javapart\\GUI\\Static\\img.png"));
        img.setBounds(10,50,934,702);
        jf.add(img);
        jf.setVisible(true);
    }
}
